{% extends 'wxchat/wxbase.html' %}{% load static %}

{% block extra %}
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script type="application/javascript">
        window.history.forward(1);
    </script>
{% endblock extra %}
{% block container %}
    <div class="weui-panel">
        <div class="weui-panel__hd header_bottom">
            <div class="weui-flex">
                <div><a href="javascript:window.history.back(-1)"><i class="icon iconfont icon-jiantou3 gray "></i></a>
                </div>
                <div class="weui-flex__item" style="text-align: center;"><span class="detail_title">详情</span></div>
                {#            <div ><a href="{% url 'dog-index' %}?next={{ request.get_full_path }}"><i class="icon iconfont icon-shouye2 pink r" ></i></a></div>#}
            </div>
        </div>
        <div class="weui-panel__bd">
            {% csrf_token %}

            <div class="weui-cells weui-cells_form cells_top">
{#                {% if code.count == 1 %}#}
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">支付状态:</label></div>
                        <div class="weui-cell__bd">
                            {% if code.pay_status == 1 %}
                                交易成功
                            {% else %}
                                交易失败
                            {% endif %}
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">商品名称:</label></div>
                        <div class="weui-cell__bd">
                            {{ code.name }}
                        </div>
                    </div>

                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label for="" class="weui-label">价格:</label></div>
                        <div class="weui-cell__bd">
                            {{ code.peice }}
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label for="" class="weui-label">订单号:</label></div>
                        <div class="weui-cell__bd">
                            {{ code.dog_code }}
                        </div>
                    </div>
{#                {% endif %}#}
            </div>

        </div>
    </div>


{% endblock container %}

